package com.bah.tract.client.workstore.project;

import com.bah.tract.client.workstore.Effort;

public class ProjectWork extends Effort {
	private String projectId;
	private String pwaURL;
	private String taskNumber;
	private String label;

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getPwaURL() {
		return pwaURL;
	}

	public void setPwaURL(String pwaURL) {
		this.pwaURL = pwaURL;
	}

	public String getTaskNumber() {
		return taskNumber;
	}

	public void setTaskNumber(String taskNumber) {
		this.taskNumber = taskNumber;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((projectId == null) ? 0 : projectId.hashCode());
		result = prime * result + ((pwaURL == null) ? 0 : pwaURL.hashCode());
		result = prime * result
				+ ((taskNumber == null) ? 0 : taskNumber.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProjectWork other = (ProjectWork) obj;
		if (projectId == null) {
			if (other.projectId != null)
				return false;
		} else if (!projectId.equals(other.projectId))
			return false;
		if (pwaURL == null) {
			if (other.pwaURL != null)
				return false;
		} else if (!pwaURL.equals(other.pwaURL))
			return false;
		if (taskNumber == null) {
			if (other.taskNumber != null)
				return false;
		} else if (!taskNumber.equals(other.taskNumber))
			return false;
		return true;
	}

}
